package com.woniuxy.mapper;

import com.woniuxy.pojo.Department;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yuankaiqiang
 * @since 2022-01-28
 */
public interface DepartmentMapper extends BaseMapper<Department> {
    /**
     * Description:获取所有部门
     * @author: ykq11  <br/>
     * Date: 2022/2/15:20:51  <br/>
     */

    List<Department> getAllDepartment(Integer parentId);

    /**
     * Description : TODO  添加部门<br/>
     * ChangeLog : 1. 创建 (2022/2/15 21:57 [ykq11]);
     ** @param department
     * *  @return null
     */
    void addDep(Department department);

    /**
     * Description : TODO  删除部门<br/>
     * ChangeLog : 1. 创建 (2022/2/15 22:18 [ykq11]);
     ** @param department
     * *  @return null
     */
    void deleteDep(Department department);
}
